﻿using System;

namespace 代理模式
{
   public class Proxy:IGiveGift
   {
       private Jone _jone;
       public Proxy(SchoolGril schoolGril)
       {
            if(_jone == null)
                _jone = new Jone(schoolGril);
       }
       public void GaveDolls()
       {
            _jone.GaveDolls();
       }

       public void GaveFlowers()
       {
            _jone.GaveFlowers();
       }

       public void GaveChocolate()
       {
            _jone.GaveChocolate();
       }
    }
}
